package br.edu.unifei.mestrado.band.difusion;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MainBandDifusionMemory {

	private static Logger logger = LoggerFactory.getLogger(MainBandDifusionMemory.class);

	public static void main(String[] args) {

		if (args.length < 3) {
			logger.warn("Uso: main seed1 seed2 fileName.txt");
			System.exit(2);
		}
		int seed1 = Integer.parseInt(args[0]);
		int seed2 = Integer.parseInt(args[1]);
		String file = args[2];

		logger.warn("Iniciando BandDifusion em memória... file: " + file);

		long delta = System.currentTimeMillis();
		BandDifusionMemory bandDifusion = new BandDifusionMemory(file, seed1, seed2);
		bandDifusion.execute();
		delta = System.currentTimeMillis() - delta;
		logger.warn("Tempo gasto no BandDifusion em memória: " + delta + " ms");
	}

}
